﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>权限管理<b class="tip"></b>权限列表</div>
    &nbsp;<a class="btn" id="Button3" href="{:U('add')}">添加新权限</a>

    <table class="tb" id="top">
        <thead>
            <tr >
                <th>权限名称 </th>
                <th>模块名称</th>
                <th>控制器名称</th>
                <th>方法名称</th>
                <th>上级权限的ID，0：代表顶级权限 </th>
                <th width="60">操作</th>
            </tr>
        </thead>
        <tbody>

            <volist name="data" id="v">        
			<tr class="tron">
				<td>{$v['level']|str_repeat='-', 8*###}{$v['pri_name']}</td>
				<td>{$v['module_name']}</td>
				<td>{$v['controller_name']}</td>
				<td>{$v['action_name']}</td>
				<td>{$v['parent_id']}</td>
		        <td align="center">
		        	<a class='btn' href="{:U('edit',array('id'=>$v['id'],'p'=>$p))}" title="编辑">编辑</a> 
	                <a class='btn' href="{:U('delete',array('id'=>$v['id'],'p'=>$p))}" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
		        </td>
	        </tr>
        </volist>

        </tbody>

    </table>
</body>
</html>
